package se.hiq.wineo.client;

import se.hiq.wineo.shared.data.WineColor;
import se.hiq.wineo.shared.data.WineDescriptor;
import se.hiq.wineo.shared.data.WineDetails;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("wine")
public interface WineService extends RemoteService {
	WineDescriptor[] getAvailableWines();
	WineDescriptor[] getWines(String name, Integer year, WineColor color);
	WineDetails getWineDetails(Long primaryKey);
	WineDetails updateOrStoreWine(WineDetails wine);
}
